package com.learnyou.server.xingzuo.dao.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author heweifeng
 * @Description:
 * @date 2022/10/12 18:53
 */
@Data
public class BaseEntity {

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Date createdAt;


    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "removed", fill = FieldFill.INSERT)
//    @TableLogic
    private Boolean removed;
}
